#include "user.h"

User::User(QObject *parent)
    : QObject{parent}
{

}

int User::FindFriendsLocation(Friend& f)
{
    for(int i=0;i<(int)this->friends.size();i++)
    {
        if(this->friends[i]==f)
        {
            return i;
        }
    }
    return -1;
}


